ed1a9bbc48ed53c84cf5fa7f7e8b682517118be6,src/frontend/org/voltcore/utils/DBBPool.java,DBBPool,allocateDirect,#number#,132

Before Change


            if (buffers != null) {
                retval = buffers.poll();
            }
            if (retval != null) {
                retval.clear();
            } else {
                bytesAllocatedGlobally.getAndAdd(capacity);
                retval = ByteBuffer.allocateDirect(capacity);
            }
            return new BBContainer(retval, 0) {

After Change



    public static BBContainer allocateDirect(final int capacity) {
        final ByteBuffer retval = ByteBuffer.allocateDirect(capacity);
        bytesAllocatedGlobally.getAndAdd(capacity);

        return new BBContainer(retval, 0) {